import Layout from '@/views/layout/Layout'

const route = {
  path: '/user',
  redirect: '/user/list',
  component: Layout,
  alwaysShow: false,
  meta: {
    title: '用户管理',
    icon: 'user'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/sys/user/list'),
      name: 'UserList',
      hidden: true,
      meta: { title: '用户列表' }
    },
    {
      path: 'add',
      component: () => import('@/views/sys/user/add'),
      name: 'UserAdd',
      hidden: true,
      meta: { title: '用户添加' }
    }
  ]
}

export default route
